/*
 * @name: **列表
 * @content:
 * @Author: joyce
 * @Date: 2020-05-20 11:11:55
 */

const express = require(`express`);
const router = express.Router();

const user_login = require("../model/system/user_login");
const dictData = require("../model/system/dictData");
const dictType = require("../model/system/dictType");
const menu = require("../model/system/menu");
const role = require("../model/system/role");
const test = require("../model/system/test");

//封装
const ADDROUTER = require("../libs/request");
//三个参数 挂载路由 ， 表名 ， 表Model
ADDROUTER(router, "user_login", user_login);
ADDROUTER(router, "dictData", dictData);
ADDROUTER(router, "dictType", dictType);
ADDROUTER(router, "menu", menu);
ADDROUTER(router, "role", role);
ADDROUTER(router, "test", test);

module.exports = router;
